class AjaxData {
	public static axios:egret.HttpRequest;

	public constructor() {
	
	}

	public static Ajax(url,type,data){
		// 发送后台数据然后获取次数
        this.axios = new egret.HttpRequest();
		this.axios.responseType = egret.HttpResponseType.TEXT;
		this.axios.open(url,type);
		this.axios.setRequestHeader("Content-type","application/x-www-form-urlencoded");
        this.axios.send(data);
	};

	
}